﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using $myprojectname$.Infrastructure.IOC;
using Ninject;

namespace $myprojectname$.Infrastructure
{
    /// <summary>
    /// Initialization methods.
    /// </summary>
    public static class Init
    {
        /// <summary>
        /// Register the inversion of control container.
        /// </summary>
        public static void RegisterIOCContainer()
        {
            ControllerBuilder.Current.SetControllerFactory(new NinjectControllerFactory());
        }

        /// <summary>
        /// Register the logging service.
        /// </summary>
        public static void RegisterLoggingService()
        {
            log4net.Config.XmlConfigurator.Configure();
        }
    }
}
